<!DOCTYPE html>

<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>匿名插槽</title>
    <script src="../js/vue.js"></script>
</head>
<body>
    <div id="app">
        <zwt>
            张文涛真是个天才的!!
        </zwt>
    </div>


    <template id="temp1">
        <div>
            <p>aaaaaaaaaaaaaaaaa</p>
            <slot></slot>
            <p>bbbbbbbbbbbbbb</p>
            <slot></slot>
            <p>ccccccccccccccccc</p>
            <slot></slot>
        </div>
    </template>

    <script> 
         
        var app = new Vue({
            el:'#app'
            ,components:{
                'zwt':{
                    template:'#temp1'
                }
            }
        });

    </script>
</body>
</html>